package com.xxx.constant;

public interface VerificationConstant {

    //发送订单的事务消息组名称
    String MQ_COURSEORDER_PAY_GROUP_TRANSACTI0N = "mq_courseorder_pay_group_transaction";

    //)发送订单的事务消息的topic
    String MQ_TOPIC_0RDER = "mq_topic_order";

    //)发送订单的事务消息的tags
    String MQ_TAGS_COURSEORDER_PAYORDER = "mq_tags_courseorder_payorder";

    //订单状态
    //0下单成功待支付，
    Integer ORDER_STATUS_WAIT_PAY = 0;
    //1支付成功订单完成
    Integer ORDER_STATUS_PAY_SUCCESS = 1;
    //2用户手动取消订单(未支付)/超时自动订单取消
    Integer ORDER_STATUS_PAY_CANCEL = 2;
    //3.支付失败
    Integer ORDER_STATUS_PAY_FAIL = 3;



    //支付方式
    String PAY_TYPE_ALIPAY = "alipay";  //支付宝
    String PAY_TYPE_WECHAT = "wechat";// 微信
    String PAY_TYPE_BANK = "bank";// 银行卡

    //订单支付状态
    Integer PAY_STATUS_WAIT = 0; //待支付
    Integer PAY_STATUS_SUCCESS = 1; //支付成功
    Integer PAY_STATUS_FAIL = 2; //支付失败
    Integer PAY_STATUS_CANCEL = 3;//取消支付
    Integer PAY_STATUS_TIMEOUT = 4; //支付超时
    Integer PAY_STATUS_TIMEOUT_FINISHED = 5; //订单结束

    //支付回调MQ的常量
    //生产者组名
    String MQ_PRODUCER_GROUP_PAY_NOTIFY = "mq_producer_group_pay_notify";
    //消费者组名
    String MQ_CONSUMER_GROUP_PAY_NOTIFY = "mq_consumer_group_pay_notify";
    //主题：标签
    String MQ_TOPIC_PAY_NOTIFY = "mq_topic_pay_notify";
    String MQ_TAGS_PAY_NOTIFY = "mq_tags_pay_notify";

    //超时未支付订单,topic
    String MQ_TOPIC_TIMEOUT_ORDER = "mq_topic_timeout_order";
    //超时未支付订单,tags
    String MQ_TAGS_TIMEOUT_ORDER = "mq_tags_timeout_order";



}
